package br.com.mundodaprata.store.services;

import br.com.mundodaprata.store.model.User;

public class ServiceFactory {
	
	@SuppressWarnings("unchecked")
	public static <T> Service<T> create(Class<T> type){
		if(User.class.isAssignableFrom(type)){
			return (Service<T>) new UserService();
		}
		
		return new Service<T>(type);
	}

}